<?
/**
 * Copyright 2008 Melange.
 *
 * This file is part of Melange CMS
 *
 * @package cms
 *
 */


/**
 * Requirements
 */
require_once("mvc/action/ActionForm.php");
require_once("mvc/action/ActionMessage.php");
require_once("mvc/action/ActionMessages.php");



/**
 * BaseFileForm Class
 *
 * @category    Melange CMS
 * @package     cms
 * @copyright   Copyright (c) 2007 Jeroen Simons. All rights reserved
 * @author      Jeroen Simons <jeroen@melange.nl>
 * @link        http://www.melange.nl/
 */
class BaseFileForm extends ActionForm {


    // ----------------------------------------------------- Instance Variables


    /**
     * id
     *
     * @var mixed 
     */
    protected $id;


    /**
     * file
     *
     * @var mixed 
     */
    protected $file;


    // ----------------------------------------------------------- Constructors


    /**
     * Construct new BaseFileForm
     */
    public function __construct() {
        $this->id = null;
        $this->file = null;
    }


    // ------------------------------------------------------------- Properties


    /**
     * Get Id
     *
     * @return mixed 
     */
    public function getId() {
        return $this->id;
    }


    /**
     * Set Id
     *
     * @param mixed  id
     */
    public function setId($id) {
        $this->id = $id;
    }


    /**
     * Get File
     *
     * @return mixed 
     */
    public function getFile() {
        return $this->file;
    }


    /**
     * Set File
     *
     * @param mixed  file
     */
    public function setFile($file) {
        $this->file = $file;
    }


    // --------------------------------------------------------- Public Methods


    /**
     * Validate this form
     *
     * @return array $errors
     */
    public function validate() {

        $errors = new ActionMessages();

        return $errors;
    }

}
?>